﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Creation.SinglePattern
{
    public class Singleton
    {
        private static Singleton uniqueInstance;

        private Singleton()
        {

        }

        public static Singleton GetInstance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new Singleton();
            }

            return uniqueInstance;
        }

        public void ThankYou()
        {
            System.Diagnostics.Trace.WriteLine("Singleton ThankYou()");
        }
    }
}
